
homeController.$inject = ['$http','$scope']
function homeController($http,$scope) {
    // alert('this is home page');
    $scope.users = [];
    $http.get('O2OAdministrator/api/sec/users')
        .then(function(data){
            var rs = data.data;
            if(!rs.result){
                alert(rs.errMsg);
            }else {
                $scope.users = rs.data;
            }
        });
}

module.exports = homeController;